package com.example.mybatis.controller;

import com.example.mybatis.service.TestService;
import com.example.mybatis.utils.ResultUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("test")
public class TestController {
    @Resource
    TestService testService;

    @GetMapping("select")
    public ResultUtil select(){
        System.out.println("select");

        return testService.select();

    }


}
